<div class="row">
	<div class="form-group pageTitle">
		<p >添加问题记录</p>
	</div>
	<div class="form-group col-xs-12 col-sm-4">
		<label class="control-label col-sm-3 no-padding-right" title="问题开始时间">问题开始时间</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<input type="text" autocomplete="off" name="startTime_problem"  class="form-control getChartTime bottomborder" [(ngModel)]='startTime_problem' placeholder="时间格式：yyyy-MM-dd HH:mm:ss"  />
			</div>
		</div>
	</div>

	<div class="form-group col-xs-12 col-sm-4">
		<label class="control-label col-sm-3 no-padding-right" title="问题结束时间">问题结束时间</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<input type="text" autocomplete="off" name="endTime_problem"  class="form-control getChartTime bottomborder" [(ngModel)]='endTime_problem' placeholder="时间格式：yyyy-MM-dd HH:mm:ss"  />
			</div>
		</div>
	</div>

	<div class="form-group col-xs-12 col-sm-4">
		<label class="control-label col-sm-3 no-padding-right" title="问题类型">问题类型</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<select class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.problemType" (change)="problemTypeChange()">
					<option value="">请选择</option>
					<option *ngFor="let item of proTypeOptions;let i=index;" [attr.value]='i'>{{item.name}}</option>
				</select>
			</div>
		</div>
	</div>

	<div class="form-group col-xs-12 col-sm-4" *ngIf="proTypeParams.problemType">
		<label class="control-label col-sm-3 no-padding-right" title="问题分类">问题分类</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<select class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.problemClass" (change)="problemClassChange()">
					<option value="">请选择</option>
					<option *ngFor="let item of proSlectedItem.childs;let i=index;" [attr.value]='i'>{{item.name}}</option>
				</select>
			</div>
		</div>
	</div>

	<div *ngIf='proTypeParams.problemType=="1"&&proTypeParams.problemClass=="1";else notflag'>
		<div class="form-group col-xs-12 col-sm-4" *ngIf="proTypeParams.problemClass&&proSlectedItem.childs[+proTypeParams.problemClass].phenomenon">
			<label class="control-label col-sm-3 no-padding-right" title="问题现象">问题现象</label>
			<div class="col-sm-9">
				<div class="clearfix">
					<select id="sensorPhenName" class="form-control inline_block fix_padding bottomborder">
						<option value="">请选择</option>
						<option value="1">传感器1</option>
						<option value="2">传感器2</option>
						<option value="3">传感器3</option>
						<option value="4">传感器4</option>
						<option value="5">传感器5</option>
						<option value="6">传感器6</option>
						<option value="7">传感器7</option>
						<option value="8">传感器8</option>
						<option value="9">传感器9</option>
						<option value="10">传感器10</option>
						<option value="11">传感器11</option>
						<option value="12">传感器12</option>
						<option value="13">传感器13</option>
						<option value="14">传感器14</option>
						<option value="15">传感器15</option>
						<option value="16">传感器16</option>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group col-xs-12 col-sm-4">
			<label class="control-label col-sm-3 no-padding-right" style="text-align: center;">一一</label>
			<div class="col-sm-9">
				<div class="clearfix">
					<select class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.phenomenon" (change)="problemPhenChange()">
						<option value="">请选择</option>
						<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon;let i=index;" [attr.value]='i'>{{item.name}}</option>
					</select>
				</div>
			</div>
			<button (click)="addseneorPhenItem()" class="addOrDel">+</button>
			<!--<label class="control-label col-sm-1 no-padding" style="text-align: center;"><button (click)="addseneorPhenItem()" style="padding: 4px 8px;">+</button> </label>-->
		</div>

		<div class="form-group col-xs-12 col-sm-12" *ngIf="seneorPhenlist.length>0">
			<label class="control-label col-sm-1 no-padding-right">&nbsp;</label>
			<div class="col-sm-10">
				<div class="row ssItemWarp">
					<div *ngFor="let item of seneorPhenlist;let i=index;" class="col-xs-3">
						<div class="ssItemStyle">
							<span>{{i+1}} ：{{item.sensorName}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp; {{item.phenomenon}}</span>
							<span style="position: absolute;right: 12px;cursor: pointer;" (click)="delSeneorPhenItem(i)"> × </span>
						</div>
					</div>

				</div>
			</div>
		</div>

	</div>

	<ng-template #notflag>
		<div>
			<div class="form-group col-xs-12 col-sm-4" *ngIf="proTypeParams.problemClass">
				<label class="control-label col-sm-3 no-padding-right" title="问题现象">问题现象</label>
				<div class="col-sm-9" *ngIf="!pcIsOther">
					<div class="clearfix">
						<select class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.phenomenon" (change)="problemPhenChange()">
							<option value="">请选择</option>
							<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon;let i=index;" [attr.value]='i'>{{item.name}}</option>
						</select>
					</div>
				</div>

				<div class="col-sm-9" *ngIf="pcIsOther">
					<div class="clearfix">
						<input [(ngModel)]='otherInpMess' class="form-control" placeholder="请输入问题原因" />
					</div>
				</div>
			</div>

		</div>
	</ng-template>

	<div class="form-group col-xs-12 col-sm-4" *ngIf="proTypeParams.phenomenon&&proSlectedItem.childs[+proTypeParams.problemClass].phenomenon[+proTypeParams.phenomenon].repairGuide">
		<label class="control-label col-sm-3 no-padding-right" title="维修指导">维修指导</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<select class="form-control inline_block fix_padding bottomborder" [(ngModel)]="proTypeParams.repairGuide">
					<option value="">请选择</option>
					<option *ngFor="let item of proSlectedItem.childs[+proTypeParams.problemClass].phenomenon[+proTypeParams.phenomenon].repairGuide;let i=index;" [attr.value]='i'>{{item.name}}</option>
				</select>
			</div>
		</div>
	</div>

	<div class="form-group col-xs-12 col-sm-4" *ngIf="proTypeParams.problemType=='1'&&proTypeParams.problemClass">
		<label class="control-label col-sm-3 no-padding-right" title="是否推送">是否推送</label>
		<div class="col-sm-9">
			<div class="clearfix">
				<select name="isPush" class="form-control inline_block fix_padding bottomborder" [(ngModel)]='isPush'>
					<option value="">请选择</option>
					<option value="1">推送</option>
					<option value="0">不推送</option>
				</select>
			</div>
		</div>
	</div>
	<div class="right">
		<button type="button" (click)="submitRecord()" class="btn btn-primary btn-sm">
			<i class="fa fa-question-circle"></i>&nbsp;
			问题记录
		</button> &nbsp;&nbsp;
		<button type="button" *ngIf="proTypeParams.problemType=='1'" (click)="submitDevice()" class="btn btn-primary btn-sm">
			<i class="fa fa-square-o"></i>&nbsp;
			设备故障
		</button> &nbsp;&nbsp;
		
	</div>
</div>
